package com.ls.kdlss.ui;

import android.os.Build;
import android.os.Bundle;
import android.support.annotation.LayoutRes;
import android.support.v4.view.ViewPager;
import android.support.v7.app.AppCompatActivity;
import android.view.WindowManager;

import com.ls.kdlss.R;
import com.ls.kdlss.util.GuideUtil;

import butterknife.Bind;
import butterknife.ButterKnife;


/**
 * Created by Administrator on 2016/9/3.
 */

public class GuideActivity extends AppCompatActivity {


    @Bind(R.id.viewpager)
    ViewPager viewpager;  //对应的viewPager
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guide);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
        }
        ButterKnife.bind(this);
        @LayoutRes int resource[]={R.layout.activity_guide1,R.layout.activity_guide2,R.layout.activity_guide3};

        GuideUtil.onGuidel(GuideActivity.this,viewpager,resource,StartActivity.class,R.id.btn_ok,getLayoutInflater());
    }







}
